#ifndef RESSOURCESTRUCT_H_INCLUDED
#define RESSOURCESTRUCT_H_INCLUDED
#include <iostream>
#include "SFML\System.hpp"
#include "SFML\Window.hpp"
#include "SFML\Graphics.hpp"

class Level;
class ImgMgr;

class RessourceStruct
{
public:
	RessourceStruct();
	virtual void init(const sf::Vector2f position, ImgMgr *imageManager);
	virtual void maj(Level *level);
	virtual void render(sf::RenderWindow *app);
	sf::Vector2f getPosition() const;
	sf::Vector2f getBox() const;
	std::string getName() const;
	bool isDestroy() const;
	int random(int a, int b);
	void getItem();

protected:
	sf::Sprite m_skin;
	sf::IntRect m_box;
	int m_vie;
	bool m_destroy;
	std::string m_name;
};


#endif